Set Permissions

CREATE, READ, UPDATE, DELETE, EXECUTE, ALTER, LANGUAGE (CRUDEAL) permissions can be set for any resource path in a VDB. A resource path can be as specific as the fully qualified name of a column or as general a top level model (schema) name. Permissions granted to a particular path apply to it and any resource paths that share the same partial name. For example, granting read to "model" will also grant read to "model.table", "model.table.column", etc. Allowing or denying a particular action is determined by searching for permissions from the most to least specific resource paths. The first permission found with a specific allow or deny will be used. Thus it is possible to set very general permissions at high-level resource path names and to override only as necessary at more specific resource paths.

Permission grants are only needed for resources that a role needs access to. Permissions are also only applied to the columns/tables/procedures in the user query - not to every resource accessed transitively through view and procedure definitions. It is important therefore to ensure that permission grants are applied consistently across models that access the same resources.

Permissions are not applicable to the SYS and pg_catalog schemas. These metadata reporting schemas are always accessible regardless of the user. The SYSADMIN schema, however, may need permissions as applicable.

To process a SELECT statement or a stored procedure execution, the user account requires the following access rights:

To process an INSERT statement, the user account requires the following access rights:

To process an UPDATE statement, the user account requires the following access rights:

To process a DELETE statement, the user account requires the following access rights:

To process a EXEC/CALL statement, the user account requires the following access rights:

To process any function, the user account requires the following access rights:

To process any ALTER or CREATE TRIGGER statement, the user account requires the following access rights:

To process any OBJECTTABLE function, the user account requires the following access rights:

See also:

Reference manual pages: